<?
$user = $this->user;
$ads = $this->ads;
$total = $this->total;
?>
<div class="content-box">

    <div class="content-box-header">
        <h3>
            Объявление пользователя
            <a href="/admin/user/view/id/<?= $user['id'] ?>"><?= $this->escape($user['name']); ?></a>
            [<?= $total ?>]
        </h3>
        <ul class="content-box-tabs">
            <li><a class="default-tab" href="#tab1">Талица</a></li>
        </ul>
        <div class="clear"></div>
    </div>
    <div class="content-box-content">
        <div class="tab-content default-tab" id="tab1">
            <table class="table table-striped">
                <thead>
                <tr>
                    <th>#</th>
                    <th>Content</th>
                    <th></th>
                </tr>
                </thead>
                <tbody>
                <? foreach ($ads as $ad): ?>
                <tr>
                    <td><?= $ad['id'] ?></td>
                    <td><?= $ad['content'] ?></td>
                </tr>
                    <? endforeach; ?>
                </tbody>
            </table>
            <?= $this->partial('/paginator/common.phtml', array('paginator' => $this->paginator )) ?>
        </div>
    </div>
</div>